An Integrated Approach to Instruction in Debugging Computer Programs
نویسندگان
چکیده
; Factorial () ; Factorial calculates the factorial of an input ; integer given in the AX register and returns the ; result in the AX register. Assumes input is ; nonnegative. Factorial PUSHA ; Save all registers on stack MOV CX,AX ; Initialize loop counter MOV AX,0 ; Initialize result CMP CX,0 ; Check for zero case JE .Done .Factorialloop: MUL CX ; AX = AX * CX LOOP Factorial ; Decrement CX, jump if CX > 0 .Done: POPA ; Restore all registers from stack RET
منابع مشابه
1 an Integrated Approach to Instruction in Debugging Computer Programs
Abstract: This study demonstrates that formal training in debugging helps students develop skills in diagnosing and removing defects from computer programs. To enhance debugging skills in an assembly language course, students completed debugging exercises, debugging logs, development logs, reflective memos, and collaborative assignments. The debugging exercises were optional, but the other acti...
متن کاملAn integrated framework for the diagnosis and correction of rule-based programs
We present a generic scheme for the declarative debugging of programs that are written in rewriting-based languages that are equipped with narrowing. Our aim is to provide an integrated development environment in which it is possible to debug a program and then correct it automatically. Our methodology is based on the combination (in a single framework) of a semantics-based diagnoser that ident...
متن کاملError Taxonomy of TOEFL iBT Writing: An Iranian Perspective
TOEFL iBT has turned recently heads to the impacts language tests can have on language learning. Since error analysis-based instruction has gained a new life with the advent of the computer analysis of the learner’s language, the researchers of this study embarked on examining a sample of integrated and independent writing tasks of 45 Iranian TOEFL iBT candidates in order to identify and classi...
متن کاملRegister Allocation over the Program Dependence Graph Cindy
This paper describes RAP, a Register Allocator that allocates registers over the Program Dependence Graph (PDG) representation of a program in a hierarchical manner. The PDG program representation has been used successfully for scalar optimizations, the detection and improvement of parallelism for vector machines, multiple processor machines, and machines that exhibit instruction level parallel...
متن کاملPerformance Debugging and Tuning using an Instruction-Set Simulator
Instruction-set simulators allow programmers a detailed level of insight into, and control over, the execution of a program, including parallel programs and operating systems. In principle, instruction set simulation can model any target computer and gather any statistic. Furthermore, such simulators are usually portable, independent of compiler tools, and deterministic—allowing bugs to be recr...
متن کامل